home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Awesome Adventures of…- The Cyberplasm Formula
/
Awesome Adventures of Victor Vector & Yondo, The - The Cyberplasm Formula (1994)(Sanctuary Woods).iso
/
pc
/
sample1.mst
< prev
next >
Wrap
Text File
|
1994-12-14
|
4KB
|
141 lines
'**************************************************************************
'* The Cyberplasm Formula Setup
'**************************************************************************
'$DEFINE DEBUG ''Define for script development/debugging
'$INCLUDE 'setupapi.inc'
'$INCLUDE 'msdetect.inc'
''Dialog ID's
CONST WELCOME = 100
CONST ASKQUIT = 200
CONST DESTPATH = 300
CONST EXITFAILURE = 400
CONST EXITQUIT = 600
CONST EXITSUCCESS = 700
CONST OPTIONS = 800
CONST APPHELP = 900
CONST OPTIONS2 = 1000
CONST BADPATH = 6400
''Bitmap ID
CONST LOGO = 1
''File Types
CONST APPFILES = 1
CONST OPTFILES1 = 2
CONST OPTFILES2 = 3
GLOBAL DEST$ ''Default destination directory.
DECLARE FUNCTION MakePath (szDir$, szFile$) AS STRING
INIT:
CUIDLL$ = "mscuistf.dll" ''Custom user interface dll
HELPPROC$ = "FHelpDlgProc" ''Help dialog procedure
SetBitmap CUIDLL$, LOGO
SetTitle "The Cyberplasm Formula Setup"
GOTO INSTALL
'$IFDEF DEBUG
i% = SetSizeCheckMode(scmOnIgnore) '' could use scmOff; def = scmOnFatal
WinDrive$ = MID$(GetWindowsDir, 1, 1)
IF IsDriveValid(WinDrive$) = 0 THEN
i% = DoMsgBox("Windows drive ('"+WinDrive$+"') is not a valid drive.", "DEBUG", MB_TASKMODAL+MB_ICONHAND+MB_OK)
GOTO QUIT
END IF
'$ENDIF ''DEBUG
WELCOME:
sz$ = UIStartDlg(CUIDLL$, WELCOME, "FInfoDlgProc", APPHELP, HELPPROC$)
IF sz$ = "CONTINUE" THEN
UIPop 1
ELSE
GOSUB ASKQUIT
GOTO WELCOME
END IF
QUIT:
ON ERROR GOTO ERRQUIT
IF ERR = 0 THEN
dlg% = EXITSUCCESS
ELSEIF ERR = STFQUIT THEN
dlg% = EXITQUIT
ELSE
dlg% = EXITFAILURE
END IF
QUITL1:
sz$ = UIStartDlg(CUIDLL$, dlg%, "FInfo0DlgProc", 0, "")
IF sz$ = "REACTIVATE" THEN
GOTO QUITL1
END IF
UIPop 1
END
ERRQUIT:
i% = DoMsgBox("Installation Incomplete!", "Setup Message", MB_OK+MB_TASKMODAL+MB_ICONHAND)
END
BADPATH:
sz$ = UIStartDlg(CUIDLL$, BADPATH, "FInfo0DlgProc", 0, "")
IF sz$ = "REACTIVATE" THEN
GOTO BADPATH
END IF
UIPop 1
RETURN
ASKQUIT:
sz$ = UIStartDlg(CUIDLL$, ASKQUIT, "FQuitDlgProc", 0, "")
IF sz$ = "EXIT" THEN
UIPopAll
ERROR STFQUIT
ELSEIF sz$ = "REACTIVATE" THEN
GOTO ASKQUIT
ELSE
UIPop 1
END IF
RETURN
INSTALL:
STARTUPDIR$ = GetSymbolValue("STF_SRCDIR")
CyberTREE$ = STARTUPDIR$ + "Ch0MAC"
CyberEXE$ = "Cyber.exe"
ICONID$ = STARTUPDIR$ + "Cyber.ico, 0, 0, 0," + STARTUPDIR$
StartPath$ = FindFileInTree (CyberEXE$, CyberTREE$)
IF StartPath$ <> "" THEN
CreateProgmanGroup "Sanctuary Woods", "", cmoNone
ShowProgmanGroup "Sanctuary Woods", 1, cmoNone
CreateProgmanItem "Sanctuary Woods", "The Cyberplasm Formula", StartPath$, ICONID$, cmoOverwrite
STARTUPDIR$ = GetSymbolValue("STF_SRCDIR")
DemoTREE$ = STARTUPDIR$ + "Ch0MAC"
DemoEXE$ = "Demo4.exe"
DemoICONID$ = STARTUPDIR$ + "Demo.ico, 0, 0, 0," + STARTUPDIR$
DemoPath$ = FindFileInTree (DemoEXE$, DemoTREE$)
CreateProgmanItem "Sanctuary Woods", "More Fun!", DemoPath$, DemoICONID$, cmoOverwrite
Cyber% = DoMsgBox ( "The installation process is complete.", "The Cyberplasm Formula", MB_OK)
ELSE
Cyber% = DoMsgBox ( "Can't find file Cyber.EXE", "Install Error", MB_OK)
END IF